import { request } from '../../utils/request'
import { getLiveId } from '../../utils/storage'

// 获取积分风暴游戏信息
export function getPointInfo(options = {}) {
  return request('gamePoint/getPointInfo', 'GET', {
    splid: getLiveId(),
    ...options,
  });
}

// 抢积分接口
export function robPoint(id) {
  return request('gamePoint/robPoint', 'GET', {
    splid: getLiveId(),
    id: id,
  });
}

// 玩积分接口
export function playPoint(options = {}) {
  return request('hmWxmoney/playPoint', 'GET', {
    splid: getLiveId(),
    size: '1',
    openid: '',
    USER_ID: '',
    ...options,
  });
}